package xyz.zhouzhaodong.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import xyz.zhouzhaodong.crm.dto.AdmissionDto;
import xyz.zhouzhaodong.crm.entity.Admission;
import xyz.zhouzhaodong.crm.util.RestMessage;

/**
 * <p>
 * 录取表 Mapper 接口
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-19
 */
public interface AdmissionMapper extends BaseMapper<Admission> {

    /**
     * 根据用户id查询录取信息
     * @param staffId
     * @param flag
     * @param page
     * @return
     */
    IPage<AdmissionDto> selectAdmissionList(@Param("staffId") String staffId, @Param("flag") Integer flag, Page<AdmissionDto> page);

}
